package cn.com.ieds.service;

import cn.com.ieds.dao.PermissionsDao;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.sql.SQLException;

public class PermissionsService {
    private PermissionsDao permissionsDao = new PermissionsDao();

    public void getPermissions(HttpServletRequest request, HttpServletResponse response) throws SQLException {
        permissionsDao.getPermissions(request, response);
    }

    public void getPermissionsListByRole(HttpServletRequest request, HttpServletResponse response) throws SQLException {
        permissionsDao.getPermissionsListByRole(request, response);
    }

    public void getPermissionsListAndRouter(HttpServletRequest request, HttpServletResponse response) throws SQLException {
        permissionsDao.getPermissionsListAndRouter(request, response);
    }

    public void getPermissionsByRole(HttpServletRequest request, HttpServletResponse response) throws SQLException {
        permissionsDao.getPermissionsByRole(request, response);
    }

    public void addPermissions(HttpServletRequest request, HttpServletResponse response) throws SQLException {
        permissionsDao.addPermissions(request, response);
    }
}
